package edu.sdufe.map.TreeMap;

import java.util.TreeMap;

/**
 * @author wang'ji'cheng
 * @date 2025/7/26
 */
public class Demo2 {
    public static void main(String[] args) {

        TreeMap<Student, String> student = new TreeMap<Student, String>();

        Student s1 = new Student("zhangsan", 23);
        Student s2 = new Student("lisi", 23);
        Student s3 = new Student("wangwu", 25);
        Student s4 = new Student("zhaoliu", 26);

        student.put(s1,"江苏");
        student.put(s2,"山东");
        student.put(s3,"浙江");
        student.put(s4,"南京");

        System.out.println(student);



    }
}
